From: Keir Fraser Date: Thu, 18 Jun 2009 09:46:21 +0000 (+0100) Subject: x86 hvm: Fix bootstrapped boolean check in start_{svm,vmx}(). X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13728 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=b90fe59f0c6725158f38778f9005c7908a627211;p=xen.git x86 hvm: Fix bootstrapped boolean check in start_{svm,vmx}(). Signed-off-by: Keir Fraser --- diff --git a/xen/arch/x86/hvm/svm/svm.c b/xen/arch/x86/hvm/svm/svm.c index 154bc270f8..e24e0bdd9a 100644 --- a/xen/arch/x86/hvm/svm/svm.c +++ b/xen/arch/x86/hvm/svm/svm.c @@ -877,7 +877,7 @@ void start_svm(struct cpuinfo_x86 *c) { static bool_t bootstrapped; - if ( !test_and_set_bool(bootstrapped) ) + if ( test_and_set_bool(bootstrapped) ) { if ( hvm_enabled && !svm_cpu_up(c) ) { diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c index adab2a93e8..72a324c7c3 100644 --- a/xen/arch/x86/hvm/vmx/vmx.c +++ b/xen/arch/x86/hvm/vmx/vmx.c @@ -1407,7 +1407,7 @@ void start_vmx(void) vmx_save_host_msrs(); - if ( !test_and_set_bool(bootstrapped) ) + if ( test_and_set_bool(bootstrapped) ) { if ( hvm_enabled && !vmx_cpu_up() ) {